package com.example.web.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import javax.persistence.*;

@Entity(name = "xw_farm_discussinfo")
public class XwFarmDiscussinfo {
    /**
     * 农家评论id
     */
    @Column(name = "farm_discus_id")
    private Integer farmDiscusId;

    /**
     * 商家加密id
     */
    @Column(name = "business_encryptId")
    private String businessEncryptid;

    /**
     * 农家乐加密id（店铺id）
     */
    @Column(name = "farm_encryptId")
    private String farmEncryptid;

    /**
     * 农家乐类型（农家乐，渔家乐……）只能选择其中一个
     */
    @Column(name = "farmTypeName")
    private String farmtypename;

    /**
     * 农家乐类型加密id
     */
    @Column(name = "farmType_encryptId")
    private String farmtypeEncryptid;

    /**
     * 用户加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 游客用户名
     */
    @Column(name = "farm_discus_username")
    private String farmDiscusUsername;

    /**
     * 评论分数
     */
    @Column(name = "farm_discus_fraction")
    private Double farmDiscusFraction;

    /**
     * 评论内容
     */
    @Column(name = "farm_discus_context")
    private String farmDiscusContext;

    /**
     * 评价印象（多个用逗号进行分隔）
     */
    @Column(name = "farm_discus_impre")
    private String farmDiscusImpre;

    /**
     * 评价图片
     */
    @Column(name = "farm_discus_img")
    private String farmDiscusImg;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_discus_updatetime")
    private Date farmDiscusUpdatetime;

    /**
     * 评价时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_discus_createtime")
    private Date farmDiscusCreatetime;

    public XwFarmDiscussinfo(){

    }

    public XwFarmDiscussinfo(String businessEncryptid, String farmEncryptid, String farmtypename, String farmtypeEncryptid, String userEncryptid, String farmDiscusUsername, Double farmDiscusFraction, String farmDiscusContext, String farmDiscusImpre, String farmDiscusImg, Date farmDiscusUpdatetime, Date farmDiscusCreatetime) {
        this.businessEncryptid = businessEncryptid;
        this.farmEncryptid = farmEncryptid;
        this.farmtypename = farmtypename;
        this.farmtypeEncryptid = farmtypeEncryptid;
        this.userEncryptid = userEncryptid;
        this.farmDiscusUsername = farmDiscusUsername;
        this.farmDiscusFraction = farmDiscusFraction;
        this.farmDiscusContext = farmDiscusContext;
        this.farmDiscusImpre = farmDiscusImpre;
        this.farmDiscusImg = farmDiscusImg;
        this.farmDiscusUpdatetime = farmDiscusUpdatetime;
        this.farmDiscusCreatetime = farmDiscusCreatetime;
    }

    /**
     * 获取农家评论id
     *
     * @return farm_discus_id - 农家评论id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getFarmDiscusId() {
        return farmDiscusId;
    }

    /**
     * 设置农家评论id
     *
     * @param farmDiscusId 农家评论id
     */
    public void setFarmDiscusId(Integer farmDiscusId) {
        this.farmDiscusId = farmDiscusId;
    }

    /**
     * 获取商家加密id
     *
     * @return business_encryptId - 商家加密id
     */
    public String getBusinessEncryptid() {
        return businessEncryptid;
    }

    /**
     * 设置商家加密id
     *
     * @param businessEncryptid 商家加密id
     */
    public void setBusinessEncryptid(String businessEncryptid) {
        this.businessEncryptid = businessEncryptid;
    }

    /**
     * 获取农家乐加密id（店铺id）
     *
     * @return farm_encryptId - 农家乐加密id（店铺id）
     */
    public String getFarmEncryptid() {
        return farmEncryptid;
    }

    /**
     * 设置农家乐加密id（店铺id）
     *
     * @param farmEncryptid 农家乐加密id（店铺id）
     */
    public void setFarmEncryptid(String farmEncryptid) {
        this.farmEncryptid = farmEncryptid;
    }

    /**
     * 获取农家乐类型（农家乐，渔家乐……）只能选择其中一个
     *
     * @return farmTypeName - 农家乐类型（农家乐，渔家乐……）只能选择其中一个
     */
    public String getFarmtypename() {
        return farmtypename;
    }

    /**
     * 设置农家乐类型（农家乐，渔家乐……）只能选择其中一个
     *
     * @param farmtypename 农家乐类型（农家乐，渔家乐……）只能选择其中一个
     */
    public void setFarmtypename(String farmtypename) {
        this.farmtypename = farmtypename;
    }

    /**
     * 获取农家乐类型加密id
     *
     * @return farmType_encryptId - 农家乐类型加密id
     */
    public String getFarmtypeEncryptid() {
        return farmtypeEncryptid;
    }

    /**
     * 设置农家乐类型加密id
     *
     * @param farmtypeEncryptid 农家乐类型加密id
     */
    public void setFarmtypeEncryptid(String farmtypeEncryptid) {
        this.farmtypeEncryptid = farmtypeEncryptid;
    }

    /**
     * 获取用户加密id
     *
     * @return user_encryptId - 用户加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置用户加密id
     *
     * @param userEncryptid 用户加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取游客用户名
     *
     * @return farm_discus_username - 游客用户名
     */
    public String getFarmDiscusUsername() {
        return farmDiscusUsername;
    }

    /**
     * 设置游客用户名
     *
     * @param farmDiscusUsername 游客用户名
     */
    public void setFarmDiscusUsername(String farmDiscusUsername) {
        this.farmDiscusUsername = farmDiscusUsername;
    }

    /**
     * 获取评论分数
     *
     * @return farm_discus_fraction - 评论分数
     */
    public Double getFarmDiscusFraction() {
        return farmDiscusFraction;
    }

    /**
     * 设置评论分数
     *
     * @param farmDiscusFraction 评论分数
     */
    public void setFarmDiscusFraction(Double farmDiscusFraction) {
        this.farmDiscusFraction = farmDiscusFraction;
    }

    /**
     * 获取评论内容
     *
     * @return farm_discus_context - 评论内容
     */
    public String getFarmDiscusContext() {
        return farmDiscusContext;
    }

    /**
     * 设置评论内容
     *
     * @param farmDiscusContext 评论内容
     */
    public void setFarmDiscusContext(String farmDiscusContext) {
        this.farmDiscusContext = farmDiscusContext;
    }

    /**
     * 获取评价印象（多个用逗号进行分隔）
     *
     * @return farm_discus_impre - 评价印象（多个用逗号进行分隔）
     */
    public String getFarmDiscusImpre() {
        return farmDiscusImpre;
    }

    /**
     * 设置评价印象（多个用逗号进行分隔）
     *
     * @param farmDiscusImpre 评价印象（多个用逗号进行分隔）
     */
    public void setFarmDiscusImpre(String farmDiscusImpre) {
        this.farmDiscusImpre = farmDiscusImpre;
    }

    /**
     * 获取评价图片
     *
     * @return farm_discus_img - 评价图片
     */
    public String getFarmDiscusImg() {
        return farmDiscusImg;
    }

    /**
     * 设置评价图片
     *
     * @param farmDiscusImg 评价图片
     */
    public void setFarmDiscusImg(String farmDiscusImg) {
        this.farmDiscusImg = farmDiscusImg;
    }

    /**
     * 获取更新时间
     *
     * @return farm_discus_updatetime - 更新时间
     */
    public Date getFarmDiscusUpdatetime() {
        return farmDiscusUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param farmDiscusUpdatetime 更新时间
     */
    public void setFarmDiscusUpdatetime(Date farmDiscusUpdatetime) {
        this.farmDiscusUpdatetime = farmDiscusUpdatetime;
    }

    /**
     * 获取评价时间
     *
     * @return farm_discus_createtime - 评价时间
     */
    public Date getFarmDiscusCreatetime() {
        return farmDiscusCreatetime;
    }

    /**
     * 设置评价时间
     *
     * @param farmDiscusCreatetime 评价时间
     */
    public void setFarmDiscusCreatetime(Date farmDiscusCreatetime) {
        this.farmDiscusCreatetime = farmDiscusCreatetime;
    }

    @Override
    public String toString() {
        return "XwFarmDiscussinfo{" +
                "farmDiscusId=" + farmDiscusId +
                ", businessEncryptid='" + businessEncryptid + '\'' +
                ", farmEncryptid='" + farmEncryptid + '\'' +
                ", farmtypename='" + farmtypename + '\'' +
                ", farmtypeEncryptid='" + farmtypeEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", farmDiscusUsername='" + farmDiscusUsername + '\'' +
                ", farmDiscusFraction=" + farmDiscusFraction +
                ", farmDiscusContext='" + farmDiscusContext + '\'' +
                ", farmDiscusImpre='" + farmDiscusImpre + '\'' +
                ", farmDiscusImg='" + farmDiscusImg + '\'' +
                ", farmDiscusUpdatetime=" + farmDiscusUpdatetime +
                ", farmDiscusCreatetime=" + farmDiscusCreatetime +
                '}';
    }
}